package com.pub.dbo.dao;

import com.pub.dbo.domain.Country;

public interface CountryDAO 
{
	/**
	 * @param insert new country
	 * @return new country ID
	 */
	public int insert(Country opObject);
	
	/**
	 * @param delete data object
	 * @return
	 */
	public int delete(Country opObject);

	/**
	 * @param updated country
	 * @return
	 */
	public int update(Country opObject);

	/** get country info by country code.
	 * @param code # country code
	 * @return
	 */
	public Country getCountry(String code);
	
	/** get country info by country id.
	 * @param code # country code
	 * @return
	 */
	public Country getCountry(int id);
	
	/**
	 * release all resource: DB ...
	 */
	public void close();
}
